You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(client-runtime): typing a bare Windows drive lists its folders - #40682
On a Windows host, typing a drive without a separator (D:) in the folder picker shows an empty list and no message. D:\ works. Android has no native folder dialog to fall back on, so it looks as if other drives are not supported.
Steps to reproduce:
Connect the Android app to a Windows environment.
Open New thread → Add project → Local folder.
Replace ~/ with D:.
Expected: the folders on D:. Actual: an empty list.
Cause: the server does return the folders (55 on my machine). The client then filters them by the typed text, because getFilesystemBrowsePath("D:", "Win32") returns filterQuery: "D:". No folder name can match that.
Change
getFilesystemBrowsePath treats a bare drive as its root: directoryPath is D:\ and the filter is empty. Mobile already navigates from directoryPath, so it needs nothing else.
On web, the command palette (row click and Tab completion) and Settings → Projects → Add folder now append the selected folder to directoryPath. They used the typed text, which would now produce D:work\. For every other path the two are the same directory.
Scope
Small fix for an obvious bug, so there is no issue. It only fixes a path the picker already accepts. It does not add a drive list (#33421) or change how a bare C: is submitted (#29375).
Verification
I found this while adding a project on a second drive from my Android phone.
Test: added a D: case to derives the browse target and navigation state. It fails on main (directoryPath: "D:", filterQuery: "D:") and passes with the fix.
Android: Android 17 emulator connected to a Windows 11 host running nightly 0.1.12-nightly.20261122.5071. I ran the same native build (2.3.0, 813) with the JS bundle from main, then from this branch. T: is a subst drive with sample folders.
main: T: lists nothing.
This branch: T: lists archive and work. I opened work, then website, and tapped Add project. The project was stored as T:\work\website.
Repository checks:vp run check:changed passed on Windows (73 tests).
Before: T:
After: T:
After: opened work
Not tested by me: iOS, and the two web changes in a browser. A maintainer later checked the command palette on Windows. The APK was repacked with a local key and OTA updates off, so that its arm64 libraries load on an x86_64 emulator.
Reviewing files that changed from the base of the PR and between 2cbba45 and 331b8d4.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
Bare Windows drive queries now resolve to the drive root instead of using the drive prefix as a filter. Browse actions append selected and completed names to the parsed directory path.
Changes: Windows Drive Browse Path
Layer / File(s)
Summary
Normalize bare drive queries packages/client-runtime/src/state/filesystem.ts, packages/client-runtime/src/state/filesystem.test.ts
getFilesystemBrowsePath adds a backslash to a bare Windows drive query before deriving its directory and filter paths. A test checks the drive root, empty filter, and browse-up state.
Build browse paths from parsed directories apps/web/src/components/CommandPalette.tsx, apps/web/src/components/settings/ProjectRepositoriesSettings.tsx
Browse navigation, Tab completion, and folder selection append names to browsePath.directoryPath.
Typing a bare Windows drive now lists that drive's folders, and selecting or adding folders builds correct paths. No actionable merge risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: a bare Windows drive such as "D:" now lists its folders instead of an empty list. The raw summary and objectives confirm the change in getFilesystemBrowsePath (treatin…
Description check
The description follows the template sections (Problem, Change, Scope, Verification). It explains the bug, the drive-root fix, and why the two web callers also change. It gives a clear scope justifica…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: a bare Windows drive such as "D:" now lists its folders instead of an empty list. The raw summary and objectives confirm the change in getFilesystemBrowsePath (treating a bare drive as its root with an empty filter). The title is specific and follows the conventional commit format. It omits the web caller changes, which is acceptable because they are secondary.
Full details: Description check
Explanation
The description follows the template sections (Problem, Change, Scope, Verification). It explains the bug, the drive-root fix, and why the two web callers also change. It gives a clear scope justification for a small fix without an issue, plus a test-first result and a detailed Android check with a real Windows host. Remaining gaps are minor: the template asks for a linked issue or maintainer request, and the description gives a reason for omitting one. Unchecked areas (iOS, browser testing of web callers) are stated. The template's note about the agent model line is present.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Evidence: Windows Server 2025, headless Chromium, dark theme, 1440×1000, fresh isolated data. Ctrl+K → Add project → Local folder → enter C:\ → replace with C:. Base hides all folders; head lists them. On head, clicking work and Tab-completing highlighted work both navigate to C:\work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On a Windows host, typing a drive without a separator (
D:) in the folder picker shows an empty list and no message.D:\works. Android has no native folder dialog to fall back on, so it looks as if other drives are not supported.Steps to reproduce:
~/withD:.Expected: the folders on
D:.Actual: an empty list.
Cause: the server does return the folders (55 on my machine). The client then filters them by the typed text, because
getFilesystemBrowsePath("D:", "Win32")returnsfilterQuery: "D:". No folder name can match that.Change
getFilesystemBrowsePathtreats a bare drive as its root:directoryPathisD:\and the filter is empty. Mobile already navigates fromdirectoryPath, so it needs nothing else.directoryPath. They used the typed text, which would now produceD:work\. For every other path the two are the same directory.Scope
Small fix for an obvious bug, so there is no issue. It only fixes a path the picker already accepts. It does not add a drive list (#33421) or change how a bare
C:is submitted (#29375).Verification
I found this while adding a project on a second drive from my Android phone.
D:case toderives the browse target and navigation state. It fails onmain(directoryPath: "D:",filterQuery: "D:") and passes with the fix.0.1.12-nightly.20261122.5071. I ran the same native build (2.3.0, 813) with the JS bundle frommain, then from this branch.T:is asubstdrive with sample folders.main:T:lists nothing.T:listsarchiveandwork. I openedwork, thenwebsite, and tapped Add project. The project was stored asT:\work\website.vp run check:changedpassed on Windows (73 tests).T:T:workNot tested by me: iOS, and the two web changes in a browser. A maintainer later checked the command palette on Windows. The APK was repacked with a local key and OTA updates off, so that its arm64 libraries load on an x86_64 emulator.
Model: Claude Opus 5.5, Claude Code in T3 Code.